package com.hddf.project.pojos;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "project_plan")
public class ProjectPlan {

	private int id;
	private String name;
	private String inputTime;
	private String udpateTime;
	
	private int countProject; 
	private List<Project> pList;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", nullable = false, unique = true)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "input_time", nullable = false)
	public String getInputTime() {
		return inputTime;
	}

	public void setInputTime(String inputTime) {
		this.inputTime = inputTime;
	}

	@Column(name = "update_time")
	public String getUdpateTime() {
		return udpateTime;
	}

	public void setUdpateTime(String udpateTime) {
		this.udpateTime = udpateTime;
	}

	@Transient
	public int getCountProject() {
		return countProject;
	}

	public void setCountProject(int countProject) {
		this.countProject = countProject;
	}

	@Transient
	public List<Project> getpList() {
		return pList;
	}

	public void setpList(List<Project> pList) {
		this.pList = pList;
	}
	
}
